package com.jwds.digital.bios.business.core.infrastructure.mapper.belt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwds.digital.bios.business.core.infrastructure.dto.belt.BeltHealthConfigReqDTO;
import com.jwds.digital.bios.business.core.infrastructure.entity.belt.BeltExceptionDict;
import com.jwds.digital.bios.business.core.infrastructure.vo.belt.BeltHealthConfigRespVO;
import com.jwds.digital.bios.business.core.infrastructure.entity.belt.BeltHealthConfig;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 皮带健康配置表 Mapper 接口
 *
 * @author 林柏云
 * @date 2024-10-24
 */
@Mapper
public interface BeltHealthConfigMapper extends BaseMapper<BeltHealthConfig> {

  /**
   * 分页查询
   * @param page 分页参数
   * @param condition 查询条件
   * @return respVOList 查询结果
   */
  IPage<BeltHealthConfigRespVO> pageQuery(@Param("page") Page<?> page, @Param("condition") BeltHealthConfigReqDTO condition);



  /**
   * 列表查询全部数据
   * @return respVOList 查询结果
   */
  List<BeltHealthConfigRespVO> queryList();

  /**
   * 查询皮带扣分项所有数据
   * @return respVOList 查询结果
   */
  @Select("select deduction_item as deductionItem from belt_exception_dict ")
  List<BeltExceptionDict> findDictAll();
}
